/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.knet.sp.ncrm.modules.sys.customerstatus.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

import cn.knet.sp.ncrm.common.persistence.Page;
import cn.knet.sp.ncrm.common.service.CrudService;
import cn.knet.sp.ncrm.modules.sys.customerstatus.dao.CustomerStatusDao;
import cn.knet.sp.ncrm.modules.sys.customerstatus.entity.CustomerStatus;

/**
 * 客户状态Service
 * @author zhangbin
 * @version 2015-08-28
 */
@Service
@Transactional(readOnly = true)
public class CustomerStatusService extends CrudService<CustomerStatusDao, CustomerStatus> {

	public CustomerStatus get(String id) {
		return super.get(id);
	}
	
	public List<CustomerStatus> findList(CustomerStatus customerStatus) {
		return super.findList(customerStatus);
	}
	
	public Page<CustomerStatus> findPage(Page<CustomerStatus> page, CustomerStatus customerStatus) {
		return super.findPage(page, customerStatus);
	}
	
	@Transactional(readOnly = false)
	public void save(CustomerStatus customerStatus) {
		super.save(customerStatus);
	}
	
	@Transactional(readOnly = false)
	public void delete(CustomerStatus customerStatus) {
		super.delete(customerStatus);
	}

	public int findDistinctCustomerStatus(CustomerStatus customerStatus) {
		return dao.findDistinctCustomerStatus(customerStatus);
	}
}